/**
 * LoginBean.java
 * 
 */

package it.customerapp.fe;

import java.util.Hashtable;

import javax.faces.bean.ManagedBean;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import org.omg.CORBA.Context;

@ManagedBean
public class LoginBean {
	private String name;
	private String password;
	
	public String getName() {
		return name;
	}

	public void setName(final String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(final String password) {
		this.password = password;
	}
	
	public String login() {
		InitialContext context;
		try {
			context = new InitialContext();
			CustomerBeanRemote service = (CustomerBeanRemote)context.lookup("CustomerBeanRemote");
		} catch (NamingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "welcome";
	}
	
	public String login2() {
		return "welcome2";
	}
	
}